package com.fz.controller;

import com.fz.entity.Banner;
import com.fz.service.BannerService;
import com.fz.vo.ResultVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 存储首页轮播图信息 前端控制器
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@RestController
@RequestMapping("/banner")
public class BannerController {
    @Resource
    BannerService bannerService;
    @GetMapping("/list")
    ResultVo<List<Banner>> list() {
        return ResultVo.success(bannerService.list());
    }

}
